<template>
  <el-table-column
    :prop="prop"
    :formatter="formatter"
    :key="Math.random()"
    :show-overflow-tooltip="showOverflowTooltip"
    :align="align || 'center'"
    :width="width || 60"
    :label="label || '序号'"
  >
    <template #default="scope">
      {{ (scope?.$index || 0) + 1 }}
    </template>
  </el-table-column>
</template>

<script lang="ts" setup name="lc-st-index">
import { ITableColumn } from "../interface";
defineProps<ITableColumn<Record<string, any>>>();
</script>
../interface ../interface
